<template>
    姓名:<input type="text" v-model="name"><br>
    性别:<input type="radio" v-model="gender" value="man">男
    <input type="radio" v-model="gender" value="woman">女<br>
    兴趣:
    <input type="checkbox" v-model="hobbies" value="eat">吃饭
    <input type="checkbox" v-model="hobbies" value="sleep">睡觉
    <input type="checkbox" v-model="hobbies" value="beat">打豆豆<br>
    学历:
    <select v-model="edu">
        <option value="-1">请选择</option>
        <option value="1">大专</option>
        <option value="2">本科</option>
        <option value="3">研究生</option>
    </select>

</template>
<script setup>
import { ref } from 'vue';

const name = ref("admin")
const gender = ref("woman")
const hobbies = ref(['eat', 'sleep'])
const edu = ref(2)
</script>